import * as common from './common'
import * as login from './login'
import * as markCreation from './markCreation'
import * as HD from './HD'


const apiObj = {
  ...common,
  ...login,
  ...markCreation,
  ...HD
}

const install = function (Vue) {
  if (install.installed) return
  Object.defineProperties(Vue.prototype, {
    $api: {
      get () {
        return apiObj
      }
    }
  })
}
export default {
  install
}
